package com.system.service.impl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import com.system.mapper.UserMapper;

import java.util.List;

import com.system.po.User;
import com.system.service.UserService;
@Service
public class UserServiceImpl implements UserService {
	@Resource
	private UserMapper userMapper;
	public int deleteByPrimaryKey(Long userid) {
		return userMapper.deleteByPrimaryKey(userid);
	}
	public int insert(User record) {
		return userMapper.insert(record);
	}
	public int insertOrUpdate(User record) {
		return userMapper.insertOrUpdate(record);
	}
	public int insertOrUpdateSelective(User record) {
		return userMapper.insertOrUpdateSelective(record);
	}
	public int insertSelective(User record) {
		return userMapper.insertSelective(record);
	}
	public User selectByPrimaryKey(Long userid) {
		return userMapper.selectByPrimaryKey(userid);
	}
	public int updateByPrimaryKeySelective(User record) {
		return userMapper.updateByPrimaryKeySelective(record);
	}
	public int updateByPrimaryKey(User record) {
		return userMapper.updateByPrimaryKey(record);
	}
	public int updateBatch(List<User> list) {
		return userMapper.updateBatch(list);
	}
	public int batchInsert(List<User> list) {
		return userMapper.batchInsert(list);
	}
}
